<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
  <div th:switch="${rank}">
    <div th:case="1">一等奖</div>
    <div th:case="2">二等奖</div>
    <div th:case="3">三等奖</div>
    <div th:case="*">有鸡毛</div>
  </div>
  <div th:if="${rank}==1">一等奖</div>
  <div th:if="${rank}==2">二等奖</div>
  <div th:if="${rank}==3">三等奖</div>

<!--  <div th:if="${rank}==1">一等奖</div>-->
<!--  <div th:unless="${rank}==1">-->
<!--    <div th:if="${rank}==2">二等奖</div>-->
<!--    <div th:unless="${rank}==2">-->
<!--      <div th:if="${rank}==3">三等奖</div>-->
<!--      <div th:unless="${rank}==3">没有获奖</div>-->
<!--    </div>-->
<!--  </div>-->
</body>
</html>